#pragma once
#include<iostream>
using namespace std;

class A {
public:
	A(int a = 0)
		:_a(a)
	{
		cout << "A(int a = 0)" << endl;
	}

	~A()
	{
		_a = 0;
		cout << "~A()" << endl;
	}

	A(const A& a) {
		_a = a._a;
		cout << "A(const A& a)" << endl;
	}

private:
	int _a;
};